import React, { useEffect } from 'react';
import './index.less';
import { history, useLocation } from 'umi';
import { LeftOutline } from 'antd-mobile-icons';
export default function Oderdetails() {
  const location: any = useLocation();

  const goOeder = () => {
    history.push('/myorders');
  };

  useEffect(() => {
    console.log(location.state.orderinfo);
  }, []);
  return (
    <div className="order_details">
      <div className="od-header">
        <div className="od-head-top">
          <div className="od-back" onClick={goOeder}>
            <LeftOutline fontSize={16} />
          </div>
          <div className="od-title">订单详情</div>
        </div>
      </div>
    </div>
  );
}
